﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Enter.Entity;
using Enter.Config;

namespace Enter.Services.Mail
{
     
    public partial interface IMail
    {
        #region 商品类型
        /// <summary>
       /// 根据编码获取下级类型
       /// </summary>
       /// <param name="parentID"></param>
       /// <returns></returns>
         List<T105_GoodClassEntity> GetGoodClassList(string parentID);
        /// <summary>
        /// 获取所有类型
        /// </summary>
        /// <returns></returns>
        List<T105_GoodClassEntity> GetAllGoodClassList();
        /// <summary>
        /// 获取类型对象
        /// </summary>
        /// <param name="cNo"></param>
        /// <returns></returns>
        T105_GoodClassEntity GetCatebyNO(string cNo);
         /// <summary>
        /// 搜索二级商品类型
        /// </summary>
        /// <returns></returns>
        List<T105_GoodClassEntity> GetCateSecondList(string parentID);
       
        /// <summary>
        /// 搜索最小一级商品类型
        /// </summary>
        /// <param name="parentID"></param>
        /// <returns></returns>
         List<T105_GoodClassEntity> GetCateMinList(int num, string parentID);
       

        [OperationContract]
         int UpdateClassHitCount(int classID);
        #endregion

        #region 属性
        /// <summary>
        /// 获取某属性下的值
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        List<T116_GoodClassProperty_ValueEntity> GetPrpertyValue(string PNo);
       
        /// <summary>
        /// 获取某类型下的属性
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        List<T106_GoodClassPropertyEntity> GetClassPropertyList(string classID);

        /// <summary>
        /// 获取库存属性
        /// </summary>
        /// <param name="cateNo"></param>
        /// <returns></returns>
        List<T106_GoodClassStockPropertyEntity> GetStockProperty(string cateNo);
        #endregion
        #region 品牌
        /// <summary>
        /// 获取某类型下的品牌
        /// </summary>
        /// <param name="classID"></param>
        /// <returns></returns>
        [OperationContract]
        List<T109_GoodBrandEntity> GetGoodBrands(string classID);
        /// <summary>
        /// 获取某类型下的品牌
        /// </summary>
        /// <param name="classID"></param>
        /// <returns></returns>
        [OperationContract]
        IList<T109_GoodBrandEntity> GetGoodBrands(string classID, int count);

         /// <summary>
        /// 获取子类别下的品牌
        /// </summary>
        /// <param name="CateNO"></param>
        /// <returns></returns>
        List<T109_GoodBrandEntity> GetGoodBrandbyCateNO(string CateNO);
         
     
        /// <summary>
        /// 首页品牌推荐
        /// </summary>
        /// <param name="count"></param>
        /// <returns></returns>
        [OperationContract]
        IList<T110_GoodBrandIndexEntity> GoodBrandIndex(int count);
        #endregion
    }
}
